<?php if ($themes) { ?>
<div class="box">
  <div class="top"><img src="catalog/view/theme/default/image/icon_theme.png" alt="" /><?php echo $heading_title; ?></div>
  <div class="middle" style="text-align: left;">
	
	<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="module_theme_switcher"> 
      <div id="tab_general" class="page">
      <select name="product" onchange="location=this.value" style="width:150px;">
            <?php foreach ($themes as $theme) { ?>
            <?php if (isset($this->session->data['theme'])) { ?>
            <option value="<?php echo $theme['href']; ?>" <?php echo (ucwords($this->session->data['theme']) == $theme['name']) ? 'selected="selected"' : ''?>><?php echo $theme['name']; ?></option>
            <?php } else { ?>
			<option value="<?php echo $theme['href']; ?>" <?php echo (ucwords($this->config->get('config_template'))) == $theme['name'] ? 'selected="selected"' : ''?>><?php echo $theme['name']; ?></option>            
            <?php } ?>
            <?php } ?>
          </select>
      </div>
    </form>
  </div>
	
  <div class="bottom">&nbsp;</div>
</div>
<?php } ?>